package com.goldgov.utils;

import java.io.IOException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jsoup.Jsoup;

public class CmsUtils extends Thread{
	
	protected final Log logger = LogFactory.getLog(this.getClass());
	
	@Override
	public void run() {
		try {
			Jsoup.connect(UrlUtil.CMS_INDEX_STATICALLY_URL).ignoreContentType(true).get();
			Jsoup.connect(UrlUtil.CMS_COLUMN_STATICALLY_ARTICLE_URL).ignoreContentType(true).get();
			Jsoup.connect(UrlUtil.CMS_ARTICLE_STATICALLY_URL).ignoreContentType(true).get();
			logger.info("=====CMS静态化完成=====");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
